import axios from '@/utils/http'

const token=localStorage.getItem("token");
console.log(token);

// 获取全部专题类型  菜单
export function AllMenu(){
    return axios({
        method:'get',
        url:'/fore/search/getCategoryList',
    })
};

// 根据id获取菜单
export function GetCourseByid(id:any){
  return axios({
    method:'get',
    url:`/fore/search/getThematicListByCategoryId/${id}`,
  })
};


// 获取所有的菜单
export function GetAllCourse(content:any){
  console.log(content);
    return axios({
        method:'post',
        url:'/fore/search/list',
        data:{
           'limit':content.limit,
           'page':content.page,
           'thematicId':content.thematicId,
           'year':content.year,
        },
        headers:{'content-type':'application/json'}
    })
};



